package com.example.springcloudwinter.feign;

import com.example.springcloudwinter.dto.ResultEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "vip-server",fallback = VIPFeignClientFallBack.class)
public interface VIPFeignClient {

    @GetMapping("vip/query")
    ResultEntity<Boolean> checkVIPByUserId(@RequestParam("userId")String userId);
}
